package com.robot.controller;

import com.robot.util.TaskUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: li
 * Date: 2019/11/3
 * Time: 17:32
 * PROJECT：robot
 * PACKAGE: com.robot
 *
 * @author:55324936@qq.com To change this template use File | Settings | File Templates.
 */
@RestController
@RequestMapping("/task")
public class TaskController {
    @Autowired
    TaskUtil taskUtil;

    @RequestMapping("/add")
    public String a(String t){
//        taskUtil.add(t);
        return "success";
    }
    @RequestMapping("/cancel")
    public String cancel(){
//        taskUtil.cancel();
        return "success";
    }
}
